package com.yuxinmuyu.sports_management.bean.entiy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("s_news")
public class SNews implements Serializable {
    @ApiModelProperty("新闻ID")
    @TableId(value = "NewID",type = IdType.AUTO)
    private Integer newID;

    @ApiModelProperty("学期ID")
    private String yearTermID;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty("发布时间")
    private Date publishTime;

    @ApiModelProperty("发布人")
    private String author;

    @ApiModelProperty("新闻标题")
    private String title;

    @ApiModelProperty("新闻内容")
    private String text;

    @ApiModelProperty("操作时间")
    private Date lastDate;

    @ApiModelProperty("操作人")
    private String operator;

    @ApiModelProperty("新闻url")
    private String fileUrl;

    @ApiModelProperty("附件名")
    private String fileName;
}
